'use strict';

const Controller = require('egg').Controller;
class AddCartController extends Controller {
  async index() {
    const { ctx } = this;
    var {msg,code} = await ctx.service.user.addCart(ctx.request.body)
    ctx.body ={
      code,
      msg
    }
  }
}
module.exports = AddCartController;